﻿using System;
using System.Globalization;
using System.Windows.Data;

namespace ZhuXingFamilys.MainFamilyView
{
    public class NameConverter : IMultiValueConverter
    {
        public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture)
        {
            string tags;

            tags = values[1] + "," + values[0];

            return tags;
        }
        public object[] ConvertBack(object value, Type[] targetTypes, object parameter, CultureInfo culture)
        {
            string[] splitValues = ((string)value).Split(',');
            return splitValues;
        }
    }
}
